<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.css" />
    <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />

    <script src="https://unpkg.com/swiper/swiper-bundle.js"></script>
    <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
    <style>
        .swiper-container{
            width: 200px;
            height: 100px;
            color: black;
        }
        .swiper-container.swiper-wrapper:nth-child(1){
            width: 200px;
        }
    </style>
</head>
<body>

    <div class="overview product_info_product_price">
        <div class="goods-price">
            <div class=".layout align-baseline 
            justify-start ">
                <div class="price
                cur-price">

                </div>
            </div>       
        </div>
    </div>

    <div class="swiper-container">
        <div class="swiper-wrapper">
          <div class="swiper-slide">文本</div>
          <div class="swiper-slide">文本</div>
          <div class="swiper-slide">文本</div>
        </div>
      </div>
      


    <script>
        
      var mySwiper = new Swiper('.swiper-container', {
          autoplay: 5000,//可选选项，自动滑动
      })
      
        // 取地址
        fetch('http://localhost:3000/data')
            .then(data =>data.json())
            .then(data =>{
                // console.log(data);
                const price = data.price;
                // const photos = data.photos;
                
                document.querySelector('.cur-price').innerHTML = price;
                // document.querySelector('.swiper-slide').innerHTML = photos;

            })
    </script>
</body>
</html>